import request from '@/utils/request'

// 查询本科学校信息列表
export function listBSchools(query) {
  return request({
    url: '/edu/bSchools/list',
    method: 'get',
    params: query
  })
}

export function listSchool() {
  return request({
    url: '/edu/bSchools/listAll',
    method: 'get'
  })
}

// 查询本科学校信息详细
export function getBSchools(schoolId) {
  return request({
    url: '/edu/bSchools/' + schoolId,
    method: 'get'
  })
}

export function getBSchoolTree(schoolId) {
  return request({
    url: '/edu/bSchools/tree/' + schoolId,
    method: 'get'
  })
}

// 新增本科学校信息
export function addBSchools(data) {
  return request({
    url: '/edu/bSchools',
    method: 'post',
    data: data
  })
}

// 修改本科学校信息
export function updateBSchools(data) {
  return request({
    url: '/edu/bSchools',
    method: 'put',
    data: data
  })
}

// 删除本科学校信息
export function delBSchools(schoolId) {
  return request({
    url: '/edu/bSchools/' + schoolId,
    method: 'delete'
  })
}

// 导出本科学校信息
export function exportBSchools(query) {
  return request({
    url: '/edu/bSchools/export',
    method: 'get',
    params: query
  })
}